package com.sun.androidexerciseproject.function.api;

import com.sun.androidexerciseproject.function.callback.ResultCallback;
import com.sun.androidexerciseproject.function.model.RequestParam;

/**
 * Created by Administrator on 2017/12/6 0006.
 */

public class APIHelper {
    private static final BaseAPI sBaseAPI = BaseAPI.getInstance();

    public static void get(String apiUrl, ResultCallback resultCallback) {
        sBaseAPI.get(apiUrl, resultCallback);
    }

    public static void post(String apiUrl, RequestParam requestParam, ResultCallback resultCallback) {
        sBaseAPI.post(apiUrl, requestParam, resultCallback);
    }
}
